{extend name="public/base" /}
{block name="head"}
<meta charset="UTF-8">        
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> 
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />                 

<link href="../resource/ui-framework/easyui-1.5.2/themes/metro/easyui-c5a176a3d4.css" rel="stylesheet" />
<link href="../resource/ui-framework/easyui-1.5.2/themes/icon-77a4ded0c8.css" rel="stylesheet" />

<link href="../resource/ui-framework/bootstrap/3.0.3/css/bootstrap-a067b6d831.min.css" rel="stylesheet" />
<link href="../resource/ui-framework/bootstrap-daterangepicker/css/daterangepicker-886dba62c4.css" rel="stylesheet" />
<link href="../resource/ui-framework/font-awesome/css/font-awesome-a81d284b37.css" rel="stylesheet" />
<link href="../resource/ui-framework/admin-lte/css/AdminLET-7d58b99a7e.css" rel="stylesheet" />
<link href="../static/css/base-dc47892812.css" rel="stylesheet" />

<link href="../resource/ui-framework/jason/searchbox/css/searchbox-398327fb84.css" rel="stylesheet" />
<link href="../resource/ui-framework/jason/pager/css/pager-f077f5e880.css" rel="stylesheet" />
<link href="../resource/ui-framework/jason/status/css/status-5f59ab3856.css" rel="stylesheet" />
<link href="../resource/ui-framework/jason/selector/css/selector-23060c280e.css" rel="stylesheet" />
<link href="../resource/ui-framework/jason/button/css/button-5ef10c798a.css" rel="stylesheet" />
<link href="../resource/ui-framework/jason/orderarrow/css/orderarrow-dcf8eba7d1.css" rel="stylesheet" />

<link href="../static/css/table-0e491bc98f.css" rel="stylesheet" />
<link href="../static/css/easyui-ext-372f902530.css" rel="stylesheet" />      
{/block}      
{block name="content"}                    
<section class="content">               
<input type="hidden" id="roleID" value="140"/>
<div class="container" style="width:100%;">
    <div class="row">
        <div class="col-md-6">
            <ul>  
                <li class="ml10 fl">
                    岗位名：管理员
                </li>
                <li class="fr">
                    <a href="{:url('/roles')}" class="btn-action">岗位管理</a>
                </li>
            </ul>
        </div>
        <div class="col-md-6">
            订单查看权限（根据状态）
        </div>
    </div>
    <div class="row mt10">
        <div class="col-md-6">
            <table class="order">
                <tr class="header">
                    <td style="width:100px;">模块名</td>
                    <td style="width:100px;">页面名</td>
                    <td>功能名</td>
                </tr>
                <tr class="project">
                        <td rowspan="2">订单管理</td>                                
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />订单创建
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                            <input type="checkbox" checked=checked />一键导入
                            <input type="checkbox" checked=checked />导入文本设置
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />订单管理
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                            <input type="checkbox" checked=checked />编辑订单
                            <input type="checkbox"  />复制订单                                   
                            <input type="checkbox"  />电话                                    
                            <input type="checkbox" checked=checked />[平台]发单
                            <input type="checkbox"  />[平台]补时
                            <input type="checkbox"  />[平台]补款
                            <input type="checkbox"  />[平台]批量补款
                            <input type="checkbox"  />[平台]申请撤销
                            <input type="checkbox"  />[平台]同意撤销
                            <input type="checkbox"  />[平台]确认完单
                            <input type="checkbox" checked=checked />[内群]发单
                            <input type="checkbox" checked=checked />[内群]批量发单
                            <input type="checkbox" checked=checked />[内群]确认完单
                    </td>
                </tr>
                <tr class="project">
                        <td rowspan="7">代练室管理</td>                                
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />企业资料
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />导入设置
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox"  />发单账号
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox"  />代练要求
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox"  />发单价设置
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />短信设置
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />标签设置
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                        <td rowspan="2">人员管理</td>                                
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />岗位管理
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />员工管理
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                        <td rowspan="3">内群管理</td>                                
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />打手管理
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />内群结算
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />内群账单
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                        <td rowspan="6">报表</td>                                
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />接单统计
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />客户报表
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                            <input type="checkbox"  />批量导出   
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />短信报表
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox"  =/>话费报表
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox"  />财务报表
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox"  />利润报表
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                        <td rowspan="1">工具</td>                                
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox"  />导出手机号
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
                <tr class="project">
                        <td rowspan="1">我的帐号</td>                                
                    <td style="text-align:left;text-indent:10px;min-width:80px;">
                        <input type="checkbox" checked=checked />我的资料
                    </td>
                    <td style="text-align:left;text-indent:10px;">
                    </td>
                </tr>
            </table>
        </div>
        <div class="col-md-6">
            <table class="order">
                <tr class="header">
                    <td style="width:100px;">订单状态</td>
                </tr>
                <tr class="project">
                    <td>
                        <input type="checkbox" checked=checked />未分配
                        <input type="checkbox" checked=checked />已分配
                        <input type="checkbox" checked=checked />代练中
                        <input type="checkbox" checked=checked />待验收
                        <input type="checkbox" checked=checked />已完成
                        <input type="checkbox" checked=checked />验收失败
                        <input type="checkbox" checked=checked />异常
                        <input type="checkbox" checked=checked />已撤销                            
                        <input type="checkbox" checked=checked />已结算                            
                        <input type="checkbox" checked=checked />已锁定                            
                        <input type="checkbox" checked=checked />异常                            
                        <input type="checkbox" checked=checked />仲裁中                            
                        <input type="checkbox" checked=checked />已仲裁                            
                        <input type="checkbox" checked=checked />撤销中                            
                        <input type="checkbox" checked=checked />已退款                    
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="row mt10">
        <div class="col-md-12" style="text-align:center;">
            <a id="btnUpdate" href="#" class="btn-action">提交修改</a>
        </div>
    </div>
</div>
</section>
{/block}
{block name="script"}
        <script src="../resource/libs/jquery/jquery-1-4ed679c998.11.3.min.js"></script>
        <script src="../resource/libs/ajaxfileupload-20caa375ef.js"></script>
        <script src="../resource/ui-framework/bootstrap/3.0.3/js/bootstrap-7b3098bda9.min.js"></script>  
        <script src="../resource/ui-framework/bootstrap-daterangepicker/js/moment-zh_cn-3d8809ccd6.js"></script>
        <script src="../resource/ui-framework/bootstrap-daterangepicker/js/daterangepicker-bca1a72d19.js"></script>
        <script src="../resource/ui-framework/admin-lte/app-bf15eda982.js"></script>                   
       <script type="text/javascript">
        $().ready(function () {
            $('#btnUpdate').on('click', function () {
                var roleID = $('#roleID').val();
                var items = new Array();

                $('input[type="checkbox"]').each(function (index,item) {
                    var ids = $(item).attr('data-options');
                    var checked = $(item).attr('checked');

                    if (checked == 'checked') {
                        ids = ids + ',1';
                    } else {
                        ids = ids + ',0';
                    }

                    items.push(ids);
                });

                var data = {
                    ID: roleID,
                    Name: items.join('|')
                };

                post('/Company/Permission', JSON.stringify(data), function (res) {
                    if (res.success) {
                        message('更新成功');
                    } else {
                        message('更新失败');
                    }
                });
            });
        });
    </script>

        <script type="text/javascript">
            $().ready(function () {
                var url = $('#hdnURL').val();

                $('.sidebar .treeview').each(function (index, item) {
                    var btn = $(this).children("a").first();
                    var menu = $(this).children(".treeview-menu").first();

                    $(this).find('a').each(function (index, item) {
                        if ($(item).attr('href') == url) {
                            menu.show();
                            btn.children(".fa-angle-left").first().removeClass("fa-angle-left").addClass("fa-angle-down");
                        }
                    });
                });
            });
        </script>
{/block}